import request from "../utils/request.js"
const uploadImage = (data) => {
  return request({
    method: "POST",
    url: "/common/upload",
    data,
    params: {
      type: "images",
    },
    // headers: {
    //   token,
    //   "Content-Type": "multipart/form-data",
    // },
  });
};
const postArticle = (data, token) => {
  return request.post("/user/addArticle", data, {
    headers: {
      token,
    },
  });
};
export { uploadImage, postArticle };
